package com.wargameproject.unite;

import com.wargameproject.Case;
import com.wargameproject.Partie;

public abstract class UniteTerrestre extends Unite {

	public void deplacer(Case c) {
		if (c.cliquable && this.peutBouger) {
			c.unite = this;
			this.position.setImageResource(0);
			this.position.unite = null;
			this.position = c;
			this.peutBouger = false;
			Partie.brouillardDeGuerre();
		}
	}

	public void casesCliquables() {
		Partie.brouillardDeGuerreTotal();
		this.position.casesCliquablesUniteAlliee();
		this.position.casesCliquablesDeplacementTerrestre();
		this.position.casesCliquablesUniteEnnemie(this.porteeAttaque);
		Partie.clickSurUnite = true;
		if (!Case.auMoinsUneCaseAction) {
			Partie.brouillardDeGuerre();
		}
	}
}
